Array Destructuring Tasks - Task 04

Skip Items in Array

Extract the first and third numbers only.

// 4. Skip Items in Array
// Extract the first and third numbers only.

const numbers = [10, 20, 30];

[first , , third] = numbers;

console.log("🚀 ~ numbers:", numbers)
console.log("🚀 ~ first and third:", first, third)